give wmname its proper place and use it