encoded decision tree and some user attribute functions