added Input-Check