first version of method1