check for T and F