fixed

check if its given dynamic memory