notify() synchronized method