updated signature to pass string