use the correct logic test on the frontend