adding substitute method