ruby style corrections