fixes missing input code from the top of file