changed function for inherited access