add selector and some info of function