edit directive for performance issues