add tmp weighted a star (unfinished)