made a boolean for returning flags