implement alpha conversion