added after some problems with STDIN.gets