changed to commandline input