splitting up input