new function work with sites