check for null params case