gan explained