fixed signature code