filter out None values in params