remove redundant arguments from several functions.