does not work with classes