added method definition