implement wrong input handling