replace nullptr to NULL for supprting gcc4.5.1 shit!