changed rate to float