added code to use excel