end check  added