algorithm issues