minor changes to analysis