update use method in code file