changing paticle pos to float