added definiton of setter and getters