littel modification of check_elevator...