restored overlap code from last night