duplicate code

Code duplicated in file.