externanilizing sleep variable