Update to resolution.py