modified types from int to float