no longer using replicate logic for padding