add functions for 3 dimenstional array