better operation on merge entity and clean codes to better operation
entity can store specific data as member by validate methods.
- fix some recuresively problems