added regex to see if parameters is a integer