fix statement and test