correct the select for all payments