Update getpos.cpp