working on ref class dependency