comments added to can detector method