bug fix in custom decl in header