cleaning up context