use integer value of data in invoke