switched to fgets, used a crop method and switched input buffer swipe