moved fill helper-functions to their own file