add method to function setup