partially cleaned and documented