remove twigs function to object