remove unused aliases and functions