added error for adjacent numbers