deleted unnecessary unpacking function