wait ok now logic actually works