improved the a-mode : basic functionalities are ok