resolve the method-2 issue