avg was having problems if decimals were passed in