fixed silly indexing error: init works
update tick to pass-by-reference