custom format functionality