added lines for adding types into typesStack