added a leaf definition
fixed leaf criterion for init page