you should use ``&&`` instead of nesting 2 if