working in the if statment