remove unnecessary compute method
simple test code
adjust loop, remove some extra assignments
switch to ternary
+ another test