Used element and data variables in the all functions