added float to truth func