added function cropSpec