adding check on getter