fixed signature checking