story part function working