fix key formatting