changed scope of method