clean up extra functions