made the root a from class to instance variable