add another parameter into the object when outside of the object, as well as using for loop to check it out