added stuff used for back-mapping