updated dressing and fixed a bug