added slicing for constants