added delay for ac