changing setters and getters to properties