trim pga data on server instead of client