updated trick class