changed to only pass one param