update comparison operators in BaseTask