implemented change from SO answer, still no luck