simplify node  creation logic in timeline