replaced "" to NULL