added a check for  before pritting out that it was set