trying to build a slice from declarations