fix example code as suggested by vuaru