fixed problem dealing with integers