removes unneccessary variable new_amount