finishing malloc