readded code from SLC