added accept pattern