another try with try, changed rate to double