added methods to handle scaling objects