added the int variation of the method