making changes to the virtual functions