can use proxy on define class