switch from stack to static_placeholder since the former is deprecated