similarly, the classes array was only created if it was needed