workign with reflection API