how to stub