updated else if to elsif