making use of generic method