fixed issue with previous in dependency question