duplicate core definition when giving array as parameter