fixed unexpected input error