turn class into id