cleaning up get_context