variable initialization to NULL to prevent Bug