added tin support