added function lorey2agb