updated the float v int method