using boolean