converted blend to fixed-point arithmatic