implemented methods in context class