allowed symbols refactor