handle scaling for objects