created setter and getter method