recover padding functions which are still used