correct scale pic function