add callback for weight