add weight functions