implementing array and padding fields