Better relying on type of fucntion