change post method to get