bit shifting instead of 1000 mult