moved resp creation for get into one func