factor dismount function