added clean method to context