using && instead of and