added error trap if a negative integer is entered