adding linear function
Linear fading working