added scaling and anchoring