prevent trying to assign to readonly properties