code optimization

in deep friends