This if should be moved to gets and read below