fixing temp scope