added a hideCode mode