added method to get sleep data