float may be represented by int
var in statement is useless
more opt in if_statement