cleans up code for easier testing