changed aws code