added capFrame