added led init functions