change setalpha to float