reads information from intents