using try method by sorting weights without defined item