Alpha value calculation added