fixed scaling to be around x and y