encode alpha