updated some bad brain code