layout fixes: check for side effects