missed a parenthesis when casting matches to int