changed out readln for working