boundaries in own function