refactores some parts of the antling