updated code for carrying out user aliasing also.