fix usage of setter method