added check to insure integers