add a function to return the previousArtifact