fixed stubs.cpp