added a null param handler function