removed uneeded dependency, removed ;s, and improved output on wrong input