got rid of O(n^2) initial update in indent layout