last and first nodes working, not middles though