properly working input