add story functions definition