check added for nil parameters