handle nullable params