judge and main work properly :)