Ari helped me optimize my code