adding directed layout