slow code to slow mackin