add coordinate update to h-file