added parameter coordi[] to sequence