removed problematic scanf lines