added transparency support