start of refactoring. interuppted by screaming child