clean up binding code