updated method definition for test