improve xlsx functionality code for labs