only code of elastic