added ternary expression to determine marker information type