refactor put header
put and get work with eachother