pseudo code input processing