implemented less than or equal to
nested conditionals work