fixed issue 1, changed function type of readline