add tosobject method for story