fixed resize and added gdp example