added power-of-two zero filling function