readded position dependent loss