fixed periodic boundaries conditions