before leaving maps and if then stuff changed in header