added condition for void status