fixing abort method