removed the check if table return NULL