added method definitions to header