- made cheking if we are eating much obtimal
- made the code cleaner