cleanup code
correct prototype and rename symbol