replace internal block with method for callback array creation