correcting ward warning