version up to 1.1
fix scale algorithm