if else spacing, and ts tags