add direction pointer