update: add distance fuctions, variable storytiling