resolve not serializable problem