updated with tabs and updated comparison operators