hidden property is messing up my function call