prolly here one conjunction would be nicer than two ifs