started function definitions