quick logic added
thousand limit condition added
scale factors added
start of unwinding logic introduced