minor changes so input checks