splitting declare into declare and inherit for better syntax
file name changes