added method definition to the header