working log centering with static modifier, scaling problem