all tests passing, remove unused function