please put this if-block at the very start of the very start of the function