moved class parameter to keep the same order as in the docs