add temp and sub