fixed errors dealing with hastag function and other minor changes