removed old helper method