added checking of signed variables