added Exception to readln