added some return values

still having trouble while looping during boolean statement