minor func fix