code for TeaLeaf assignments