still working on fixing provided context not valid