sequence updated
refactored unless else => if else