clean publicMethod and privateMethod