continues implementation of the main method (replace, transpose, fill))