fps added
fix double precision bug