added check if integer for bash