final changes for judge-3