added a length check on the eval output