changed default case statement