logic pending