fixed bug in signum