allow and ignore null arguments in select