replace temps with querys for total amount and frequent render points