return integer rather than number in addon methods