ok now works on most things except ternary