created internal functions file