using own function to add new instance