ran a clean up

- switched order of looping when removing aliases for better performance