correcting line 40 and 42 due to contradiction
delete logic complete now implementing actual delete from array