still working on null error