make retrieve into a function
add header
testing retrieve and create functions