fix buildAlias method