protypes & array & fixes