set correct classes to link