fix example, set amount default to 0