removed the $.each which was not needed