sema_up modified