add parts to ast