added function w