replace all aliases with functions