fixed acceptable declaration, refactored valid response