format view pkg's codes