finished Ternarys

tested and worked