cleaned up as6