passing bedtype arg