fixed infinite loop i accidentally introduced 8)