create a new scope to preserve the value of method