treat duplicate function in using trait