fix for allow negative numbers