moved the import inside the constructor