added resolution limit