added resolution option