changed log statement, causes problem wiht function running too early