check if all params are passed