changed type external to click