reworked the is after function to be more clear