improved padding for cube multiply