moving location of apply plugin