the current iteration is sendered but the code is ugly