remove unused context variables