remove addition call to resizeElements #bug