work functions