apply import pattern