changing win function names for readability