handling the case when something is not a sample