adding c.hinput function