add fall detection algorithm