fix missing argument passed to decideICAP along with use of incorrect variable name
add spacing for readability
remove code that was used for debugging