removed reference on set
simple implementation