added scaling to pi sketch