changed maxAWS to maxaws as we get from postgres request