RM7.7bil to prepare Sabah, S'wak to switch to