improve performance of simultanous assignments