tried using conditions, but it doesnt work