this works with different class