added win check functions