fixed arduino says null pointer