removing redundant input validation