fixed function to check wadus