used context metadata correctly