prevent multiple calls to work