remove padding and properly size depth of PIR