final code used in the Expo