moved a line to accomodate dependency
added vertex_scale trick