removed extraneous helper method