fix abused function