added bug function signature