added a variable comarator