finished input splitting