perfect to fulfill the three requirements: for generating the bar code data