changed types from void* to $Object*