refactor for static call.