proper implementation of && operator (mandatory)