boolean assigns working