added tales functionality