added code for 7segment display