took out amount from parameter