change Object to Integer and rename argument