my implementation of mapAttrs started