fixed weight computation logic