fixed syntax and added float