function format changed