sign functions