use container class instead of non existent function