removed anti flicker, added scale factor