adding comments after testing to verify everything works