assign context to all objects first, then do the rest