movement type detection