fixed #14 respect negative numbers