Moved maketform outside for-loop