add lambda calculation
add sleep and wake