added extra credit feature