found that silly missing curly brace that made the code break for days