completes pseudo and code