added uptime func