added padding to ensure fixed-dimension repetition features