join class first and working