updated the comments, like detection now works