got rid of unused function