replaced CreateElement with createElement