fixed the errors of writing luma twice and wrong number of chroma