added pseudo code generation