conditional for twitter