fixed some old code that snuck in