move element declaration up one level