added ace code