add validate size validate pph method