added a2g() and stuff