can this method be on base query or we can do what xavier said