replace the number of entries for stream formats to macro