fix clean_up() declaration
fix handle_input() typo