fixed terminate function
renamed alpha