added double check for Input block