a safer method