updated resolution and fixed bug