add direction\margin