define NULL as 0 to make it type safe