rewrite of link function, added scene function, created bins