reversed the order of operations for if statements removed Else and corrected console.log