some more checks for in parameter