fixed return type from string to float