moved content create line to correct function