added functionality of add manual_spent