To test the hypothesis that rapid eye movement ( REM ) sleep contributes to the consolidation of new memories , whereas non-rapid eye movement ( NREM ) sleep contributes to the prevention of retroactive interference .