change function from static to instance
Implement define feature