apply version to dependency