swap ternary
add .gitignore