fixed inheritance issue