rename writeMethod --> method