used NULL instead of 0