- implement code for core