added subpose.cpp