fixed bug with non-truish values