change connection to static