everything is tested + optim in docs