taking gen variables