added third dimension