fixed formatting $ and %