removed bin file, added radiues and weight as parameters