corrected #if exclusion of update function