added input prompt removed excess code