modified cannon.f to make scale scale automaticly