improve frame alpha function