determining direction of source