minor correction to check