changed alpha working code