Helperfunction implemented