got first solar subroutine working