remove unneeded function assignComponents