improved task prioritiy order