working on fixing error