The function of REM and NREM sleep on memory distortion and consolidation