Usage of weight map for direction