use array for expanding patterns
decimal expand pattern completed