change to nonstatic method