made sure chunk wasn't null