fix formatopname to actually work