debugging story schema method scope issue