creating default folder if it doesnt exist
remove unnecessary pointer