same issue as above when checking for inputs