remove test output and rename function