adds logical statements