removed void ** cast
refactored -- changed for loop