removing key ref