added Frame function