basic weight functionality added