use single & condition instead of &&