add code to stub