printing ids
seg fault fixed