should have read @sgade his code before. denglish ftw