made code legal