as this is generated in more than one place in the same class, it would be nice to factorize this