testing if the logic is working