delete buggy function