finish input generator part