adding the right file extension.