removed getweightbyid method from entity