added removeblank function