added waitkey, can escape from window