replacing string append with replace and accomodating min-scale and user-scalable