format and make rename return boolean