add alpha setting function