corrected code for wc