added to-dec function