aded debug statement