avoid nil execution