change readchar to raw_input