main code for nora