Very important flaw: you have a typo in "determines"