fixed bug
changed minor thing for pi