added tofixed function