done. in a very inefficent manner though