formatting change to for selection and added method to array helper