attempt to fix input loops