clean up unused function from bug fix