#46 - explicitly converted all vars to numbers in refresh method