added apply model