added variable for increment, updated total to $