added unconfirmed check