add new simulation and modify translation from uchar to double