removed hardcoded arrays

removed the hardcoded arrays