get rid of extraneous helper functions