2> added, input validation