remove unnecessary register