delete useless codes at package entity
delete useless codes at service