cleans up code via helper functions